
#include <stdio.h>
void my_exit1(void);
void my_exit2(void);

int main(int argc, char * argv[]){
	if(atexit(my_exit1) !=0){
		printf("cannot register my_exit1\n");
		return 1;
	}
	if(atexit(my_exit2) !=0){
		printf("cannot register my_exit1\n");
		return 1;
	}
	if(atexit(my_exit1) !=0){
		printf("cannot register my_exit1\n");
		return 1;
	}

	printf("main done\n");
	return 0;
}

void my_exit1(void){
	printf("this is my_exit1\n");
}
void my_exit2(void){
	printf("this is my_exit2\n");
}